
package com.idealighter.game.games.orderma.handler;

import com.google.inject.Inject;

import com.idealighter.game.core.annotation.ReqMsgHandler;
import com.idealighter.game.games.orderma.manager.OderMaMgr;
import com.idealighter.game.games.orderma.message.ReqEnterTableMsg;
import com.idealighter.game.message.core.ReqMessage;
import com.idealighter.game.message.core.ResMessage;
import com.idealighter.game.player.struct.Player;
import com.idealighter.game.server.handler.ReqMessageHandler;


@ReqMsgHandler(524112)
public class ReqEnterTableHandler implements ReqMessageHandler {

  @Inject
  private OderMaMgr orderma;

  @Override
  public ResMessage action(Player player, ReqMessage message) {
    ReqEnterTableMsg msg = (ReqEnterTableMsg) message;
    orderma.enterTable(player, msg.getTableId(), (byte) msg.getOrder(), msg.getPassword());


    return null;

  }
}
